﻿using System;

namespace UnitOfWork.Validation
{
    /// <summary>
    /// 唯一
    /// </summary>
    [System.AttributeUsage(AttributeTargets.Property)]
    public class UniquenessAttribute : Attribute
    {
        public string ErrorMessageResourceName { get; set; }
        public Type ErrorMessageResourceType { get; set; }

        public static string DefaultErrorMessage = "{0}已经存在";
    }
}
